﻿Drawer = {};

Drawer.RegisterBlockContextMenu = function (selector, node) {
    $(selector).contextMenu('block-context-me nu', {
        'Insert': {
            click: function (element) {
                mindMap.Insert(node);
            }
        },
        'Delete': {
            click: function (element) {
                mindMap.Delete(node);
            }
        },
        'some new action': {
            click: function (element) {
                alert('some new action');
            }
        }
    }
    //, { disable_native_context_menu: true }
        );
}